package com.ma;

import android.app.Application;
 

import com.uuzuche.lib_zxing.activity.ZXingLibrary;

import java.io.File;

import utils.StringUtil;


/**
 * Created by Administrator on 2016/9/18 0018.
 */

public class App extends Application {
    //@变量名 AppFile : APK的缓存路径
    public static String AppFile;
    private static App _instance;
    public static App getInstance() {
        return _instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        ZXingLibrary.initDisplayOpinion(this);
        _instance= this;
        AppFile = StringUtil.getSDCardPath() + "/wwy_p2";
        File file = new File(AppFile);
        // 检测路径是否存在
        if (!file.exists()) {
            file.mkdirs();// 创建该路径
        }



    }


}
